package com.bafenyi.zh.bafenyilib.request;

import com.bafenyi.zh.bafenyilib.request.Bean.BaseEntity;
import com.bafenyi.zh.bafenyilib.request.Bean.MoreAppBean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface APIFunction {

    /**获取时间戳**/
    @GET("rest/comm/v1/timestamp")
    Observable<HashMap<String , String>> getTimeStampApi();
    /**上报统计**/
    @POST("rest/count/v1/report")
    @FormUrlEncoded
    Observable<HashMap<String , String>> reportDataInfo(@FieldMap Map<String, String> params);
    /**获取配置参数**/
    @GET("rest/comm/v1/param")
    Observable<HashMap<String , Object>> getParams(@QueryMap Map<String, String> params);
    /**获取moreapp图片**/
    @GET("rest/comm/v1/moreapp-banner")
    Observable<BaseEntity<ArrayList<MoreAppBean>>> getMoreAppPic(@QueryMap Map<String, String> params);

    /**获取云缓存减库存**/
    @GET("rest/audit/v1/report")
    Observable<HashMap<String , String>> auditReport(@QueryMap Map<String, String> params);
}
